<ui:composition 
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:c="http://java.sun.com/jsp/jstl/core"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:p="http://primefaces.prime.com.tr/ui">
    <h:form>
        <p:menubar autoSubmenuDisplay="true">  
            <p:menuitem value="Home" actionListener="#{workspaceManagerBean.redirectToHomePage}" /> 

            <p:menuitem value="Profile" actionListener="#{workspaceManagerBean.redirectToProfilePage}" icon="ui-icon ui-icon-document" /> 

            <p:submenu label="Announcement" icon="ui-icon">  
                <p:menuitem value="View" actionListener="#{workspaceManagerBean.redirectToAnnView}" />  
            </p:submenu>  

            <p:submenu label="Messages" icon="ui-icon">  
                <p:menuitem value="Create New Message" actionListener="#{workspaceManagerBean.redirectToSendNewMsg}" />  
                <p:menuitem value="View All Sent" actionListener="#{workspaceManagerBean.redirectToViewAllSent}" />
                <p:menuitem value="View All Received" actionListener="#{workspaceManagerBean.redirectToViewAllRcved}" />
            </p:submenu>

            <p:submenu label="Job List" icon="ui-icon">  
                <p:menuitem value="My Job To Do" actionListener="#{workspaceManagerBean.redirectToViewMyJobList}" />  
                <p:menuitem value="My Schedule" actionListener="#{workspaceManagerBean.redirectToViewMySchedule}" />  
            </p:submenu>

            <p:menuitem value="Log out" actionListener="#{loginManagerBean.logoutAction}" icon="ui-icon ui-icon-close" />  
        </p:menubar>  
    </h:form>
</ui:composition>